package com.itheima.edu.info.manager.A_Entry;

import com.itheima.edu.info.manager.B_Controller.OtherStudentController;
import com.itheima.edu.info.manager.B_Controller.StudentController;
import com.itheima.edu.info.manager.B_Controller.TeacherController;
import com.itheima.edu.info.manager.E_domain.Teacher;

import java.util.Scanner;

public class ManagerEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (true) {
            //主菜单搭建：
            System.out.println("--------欢迎来到黑马信息管理系统--------");
            System.out.println("请输入您的选择：1.学生管理  2.老师管理  3.退出");
            String chose = sc.next();
            switch (chose){
                case "1":
                    OtherStudentController otherStudentController = new OtherStudentController();
                    otherStudentController.start();
                    break;
                case "2":
                    TeacherController teacherController = new TeacherController() ;
                    teacherController.start();
                    break;
                    case "3":
                        System.out.println("感谢您的使用！");
                        System.exit(0);
                        break;
                default:
                    System.out.println("您的输入有误，请重新输入：");
                    break;
            }
        }
    }
}